const Hosts = {
  // mock: 'http://192.168.1.996:007',
  dev: 'https://www.gjssmj.com:18080',
  tri: "https://www.gjssmj.com:18080",
  prod: 'https://www.gjssmj.com:9080'
};
const {
  envVersion
} = wx.getAccountInfoSync().miniProgram;
let baseUrl = "";
console.log(wx.getAccountInfoSync().miniProgram, 11)
switch (envVersion) {
  case 'develop':
    baseUrl = `${Hosts.dev}`;
    break;
  case 'trial':
    baseUrl = `${Hosts.tri}`;
    break;
  case 'release':
    baseUrl = `${Hosts.prod}`;
    break;
  default:
    baseUrl = `${Hosts.prod}`;
    break;
}
// 测试

console.log(baseUrl, 22)
export const apiUrl = baseUrl;
export const apiUrlOcr = 'https://www.gjssmj.com:8081';
//正式服
// export const apiUrl = 'https://www.gjssmj.com:9080'; 
// export const apiAccept = 'application/prs.larabbs.v1+json';
export const fileDomain = `${apiUrl}/basic/n/get/file?key=`;
export const cusFileDomain = `${apiUrl}/exgateway/f/update/getFileOutput?fileKey=`;
export const uploadUrl = `${apiUrl}/basic/t/public/batchadd/file`;
export const wxType = 'wx1';
export const loadingTitle = '加载中...';
export const submitTitle = '提交中...';
export const version = '1.0.85';
export const statusColorArr = [{
    id: '1',
    color: '#FFA714'
  },
  {
    id: '2',
    color: '#63C066'
  },
  {
    id: '3',
    color: '#FFA714'
  },
  {
    id: '4',
    color: '#FFA714'
  },
  {
    id: '5',
    color: '#0067C4'
  },
];
//uat wx3f5c3de7569a03ff
//正式 wxed4a268194672790